package com.stooscloud.provider.service;

import com.stooscloud.provider.model.dto.IdChkDto;
import com.stooscloud.provider.model.dto.response.IdCheckRespose;
import com.stooscloud.provider.service.hystrix.IdChkFeignApiHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(url ="${stooscloud.idchk.url}",fallback = IdChkFeignApiHystrix.class,name = "IdChk")
public interface IdChkFeignApi {
    @PostMapping(value = "/idcheck",consumes="application/json")
    IdCheckRespose call(@RequestBody IdChkDto idChkDto);
}
